package stud.aistar.entity;

import java.io.Serializable;

public class Medicine implements Serializable {

    private Integer id;//药品id

    private String medName;//药品名称

    private String medPrice;//药品价格

    private String medImages;//药品图片

    private Integer medtypeId;

    private String medIntro;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMedName() {
        return medName;
    }

    public void setMedName(String medName) {
        this.medName = medName == null ? null : medName.trim();
    }

    public String getMedPrice() {
        return medPrice;
    }

    public void setMedPrice(String medPrice) {
        this.medPrice = medPrice == null ? null : medPrice.trim();
    }

    public String getMedImages() {
        return medImages;
    }

    public void setMedImages(String medImages) {
        this.medImages = medImages == null ? null : medImages.trim();
    }

    public Integer getMedtypeId() {
        return medtypeId;
    }

    public void setMedtypeId(Integer medtypeId) {
        this.medtypeId = medtypeId;
    }

    public String getMedIntro() {
        return medIntro;
    }

    public void setMedIntro(String medIntro) {
        this.medIntro = medIntro == null ? null : medIntro.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", medName=").append(medName);
        sb.append(", medPrice=").append(medPrice);
        sb.append(", medImages=").append(medImages);
        sb.append(", medtypeId=").append(medtypeId);
        sb.append(", medIntro=").append(medIntro);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}